package com.example.beans;

import org.springframework.beans.factory.annotation.Autowired;


public class Girl {

    private Boy boy;

    public Girl() {
        System.out.println("Girl被实例化");
    }

    @Autowired
    public void setBoy(Boy boy) {
        this.boy = boy;
    }
}
